<script>
$(document).ready(function() {
    $('#list_coa').dataTable( {
		"bJQueryUI": true,
        "aLengthMenu": [[10,25,50, 100, -1], [10,25,50,100, "All"]],
		"sPaginationType": "full_numbers",
		"oLanguage": {
            "sLengthMenu": "Menampilkan _MENU_ data",
            "sZeroRecords": "Belum ada data COA yang tersimpan",
            "sInfo": "",
            "sInfoEmpty": "",
            "sInfoFiltered": "(Hasil filter dari _MAX_ yang didapat)"
        }
    } );
} );
</script>
<?php
$data['cur_parent_menu']='master';
$data['cur_selected_menu']='coa';
$this->load->view('template/menu_view',$data);
?>
<br/><br/><br/><br />
<div class="gridcenter" style="font-family: 'open sans',arial,sans-serif;font-size: 18px;font-weight:bold;color:#666666;">Daftar SPBU</div>
<br />
<div class="gridcenter"><a href="<?php echo COA?>form_add_coa">Tambah Chart Of Accounts (COA)</a></div>
<br/>
<div class="demo_jui datagrid gridcenter">
<table id="list_coa" cellpadding="0" cellspacing="0" border="0" class="display">
	<thead>
		<tr>
			<th>No</th>
			<th>Kode COA</th>
			<th>Nama COA</th>
<!--			<th>Tipe</th>-->
			<th>Aksi</th>
		</tr>
	</thead>
	<tbody>
		<?php for($i=0;$i<count($daftar_coa);$i++){?>
		<tr>
		<td align="center"><?php echo ($i+1)?></td>
		<td align="center"><?php echo $daftar_coa[$i]['kode_coa']?></td>
		<td align="center"><?php echo $daftar_coa[$i]['nama_coa']?></td>
<!--		<td align="center"><?php //echo $daftar_coa[$i]['tipe']?></td>-->
		
		<td align="center">
			<a href="<?php SPBU?>process_delete_coa/<?php echo $daftar_coa[$i]['id']?>" onclick="return confirm_message()">Delete</a> 
			| 
			<a href="<?php SPBU?>form_edit_coa/<?php echo $daftar_coa[$i]['id']?>">Edit</a>
		</td>
		</tr>
		<?php } ?>
		
	</tbody>
</table>
</div>